package com.example.microinvestcommon.entity;
import com.example.microinvestcommon.util.SnowflakeIdGeneratorUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
//实体化Users
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Users {
    private Long userId;
    private String userName;
    private String password;
    private String email;

    public Users(String userName, String password, String email,SnowflakeIdGeneratorUtil snowflakeIdGenerator){
        this.userId=snowflakeIdGenerator.nextId();
        this.userName=userName;
        this.password=password;
        this.email=email;
    }

}
